package com.ruoyi.logistic.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum NetworkUndertakeCentreTransferDetailEnum {
    transportCode("transportCode", "运单号"),
    settleDate("settleDate", "结算日期"),
    amountPayable("amountPayable", "应付金额"),
    transferFee("transferFee", "中转费"),
    extraFee("extraFee", "附加费"),
    addFee("addFee", "加收费"),
    preAmountReceived("preAmountReceived", "预付款已收金额"),
    settleWeight("settleWeight", "结算重量"),
    pullAvgWeight("pullAvgWeight", "拉均重量"),
    volumeWeight("volumeWeight", "拉均重量"),
    lengthWidthHeight("lengthWidthHeight", "长宽高"),
    weight("weight", "重量"),
    orderClientId("orderClientId", "订单客户"),
    printClerk("printClerk", "面单发放对象/打单员"),
    aimProvince("aimProvince", "目的省"),
    aimCity("aimCity", "目的市"),
    transportType("transportType", "运输方式"),
    itemType("itemType", "物品类型"),
    sheetSource("sheetSource", "面单来源"),
    receivingClerk("receivingClerk", "收件员"),
    signNetworkId("signNetworkId", "签收网点"),
    signTime("signTime", "签收时间"),
    remark("remark", "备注");

    private final String code;
    private final String info;

    NetworkUndertakeCentreTransferDetailEnum(String code, String info) {
        this.code = code;
        this.info = info;
    }

    public String getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (NetworkUndertakeCentreTransferDetailEnum value : NetworkUndertakeCentreTransferDetailEnum.values()) {
            if (value.code.equals(code)) {
                return value.info;
            }
        }
        return "";
    }
}
